Welcome Guest, you are in: Login
CTS Futures

Page History: Test Request

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2012/09/06 15:17


Session Integrity Check

Test Request messages forces a response from the counterparty to acknowledge a continuation of FIX Session connectivity. Test requests can occur at any time during the FIX Session. When a test request is received, the party is obligated to respond to the Test Request message with a Heartbeat. Such heartbeat must also contain the TestRequestID (Tag 112) that originated in the original Test Request message.

Test Request messages also provide an opportunity to check for out-of-sequence conditions. It permits checking for the expected outgoing sequence number (Tag 34 of the Test Request) and expected incoming sequence number (Tag 34 of the mandatory hearbeat response).

The TestRequestID (Tag 112) can be text of any form. An unique string is recommended (e.g. an instantenous time label) for pairing Test Requests to their corresponding Heartbeat messages.

Message Dictionary

TagField NameReq'dComments
Standard HeaderYMsgType = 1
112TestReqIDNRequired when the heartbeat is the result of a Test Request message
Standard TrailerY

Sample Messages


Test Request generated by the client:

34=123|49=test|56=T4Test|50=TraderName|52=20120905-18:09:12.103|112=treqid.09.05.2012-13.09.12|
[FIXTESTREQUEST]
[MsgSeqNum] 34 = 123
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = TraderName
[SendingTime] 52 = 20120905-18:09:12.103
[TestReqID] 112 = treqid.09.05.2012-13.09.12

T4 API Server Heartbeat response to the Client Test Request

34=72|49=T4Test|56=test|50=T4FIX|52=20120905-18:09:12.119|112=treqid.09.05.2012-13.09.12|
[FIXHEARTBEAT]
[MsgSeqNum] 34 = 72
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-18:09:12.119
[TestReqID] 112 = treqid.09.05.2012-13.09.12

Test Request generated by the T4 API Server:

34=122|49=T4Test|56=test|50=T4FIX|52=20120905-18:34:21.398|112=cts-20120905-18:34:21.398|
[FIXTESTREQUEST]
[MsgSeqNum] 34 = 122
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-18:34:21.398
[TestReqID] 112 = cts-20120905-18:34:21.398

Client Heartbeat response to the T4 API Server Test Request

34=173|49=test|56=T4Test|52=20120905-18:34:36.436|112=cts-20120905-18:34:21.398|
[FIXHEARTBEAT]
[MsgSeqNum] 34 = 173
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SendingTime] 52 = 20120905-18:34:36.436
[TestReqID] 112 = cts-20120905-18:34:21.398


FIX API Home Page.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

2 Pierce Pl, Suite 200, Itasca, IL 60143

© 2009-2023 Cunningham Trading Systems LLC All rights reserved.